//
//  BSLAsset.h
//  demo
//
//  Created by RYAN on 15/7/15.
//
//

#import <AssetsLibrary/AssetsLibrary.h>
#import <AVFoundation/AVFoundation.h>

@interface BSLAsset : NSObject

@property (nonatomic, strong) ALAsset *alAsset;
@property (nonatomic, strong) AVAsset *avAsset;

@property (nonatomic, strong) NSString *filename;
@property (nonatomic, strong) UIImage *thumbnail;
@property (nonatomic, assign) BOOL isVideo;
@property (nonatomic, strong) NSURL *videoURL;
@property (nonatomic, strong) NSString *videoDuration;

@property (nonatomic, strong) UIImage *fullResolutionImage;
@property (nonatomic, strong) UIImage *aspectRatioThumbnail;
@property (nonatomic, strong) UIImage *fullScreenImage;

@property BOOL isUserChosen;

- (id)initWithAsset:(ALAsset *)asset;
- (NSData *)dataWithFullResolutionImage;

@end
